package com.yxq.mdt.app.modules.socialcontact.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.yxq.mdt.app.R;
import com.yxq.mdt.app.glide.GlideHelper;
import com.yxq.mdt.app.modules.socialcontact.bean.NearManAndDynamicBean;

import java.util.List;

public class PossibleListAdapter extends BaseQuickAdapter<NearManAndDynamicBean, BaseViewHolder> {
    public PossibleListAdapter(int layoutResId, @Nullable List<NearManAndDynamicBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, NearManAndDynamicBean item) {
        GlideHelper.setLoadImage(mContext, item.getHeadimg(), R.mipmap.head_icon, helper.getView(R.id.possible_item_icon));
    }

    @Override
    public int getItemCount() {
        return 3;
    }
}
